Skip to content

Commit dc0dc0a

Browse files
AmaranthineCodicesmodularbot
authored andcommitted
Add changelog entries about new mojo test functionality:
- Compilation options (e.g. `-g`) - Debug options - New compilation model for unit tests MODULAR_ORIG_COMMIT_REV_ID: 5ae4ace1c668654361ebef6a3550d6bff3f2f4e1
1 parent 7511255 commit dc0dc0a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: docs/changelog.md

+14
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ future and `StringSlice.__len__` now does return the Unicode codepoints length.
427427
set of tests collected and executed. The filter string is a POSIX extended
428428
regular expression.
429429

430+
- The `mojo test` command now supports using the same compilation options as
431+
`mojo build`.
432+
433+
- You can now debug unit tests using `mojo test` by passing the `--debug` flag.
434+
Most debug flags are supported; run `mojo test --help` for a full listing.
435+
436+
Debugging doctests is not currently supported.
437+
430438
- `UnsafePointer` now has an `alignment` parameter to specify the static
431439
alignment of the pointer. Consequently, `UnsafePointer.alloc` no longer takes
432440
in an alignment parameter, and the alignment should be specified in the type.
@@ -699,6 +707,12 @@ future and `StringSlice.__len__` now does return the Unicode codepoints length.
699707
- The `simd_strided_load()` and `simd_strided_store()` have been renamed to
700708
`strided_load` and `strided_store` in `UnsafePointer`.
701709
710+
- `mojo test` now uses the Mojo compiler for running unit tests. This will resolve
711+
compilation issues that sometimes appeared, and will also improve overall test
712+
times, since we will only compile unit tests once before executing all of them.
713+
714+
These changes do not apply to doctests, due to their different semantics.
715+
702716
### ❌ Removed
703717
704718
- Support for the legacy `fn __init__(...) -> Self:` form has been removed from

0 commit comments

Comments
 (0)