NSpec v3.1.0 Release Notes
Release Date: 2017-06-12 // over 7 years ago-
- feat(beforeAll): fail example when parent beforeAll throws
- ๐ป feat(exceptions): don't run example when before throws, preserve example exception when after throws
- ๐ fix(beforeAll): formatter reports failed test when before_all throws
- ๐ fix(beforeAll): fail example also when current context beforeAll throws
- ๐ docs(examples): fix NSpecRunner path
- โฌ๏ธ chore(examples): upgrade to NSpec 3.0.7
Internal:
โ Testing
- test(formatters): LiveFormatter test does not depend on
when_running_specs
- test(formatters): move formatter tests to dedicated directory
- test(beforeAll): add test case for issue #190
- test(beforeAll): tests should fail for formatter when before_all throws
- test(beforeAll): tests body should not run when before_all throws
- test(beforeAll): example should fail when context beforeAll/before fail
- test(afterAll): example should fail when afterAll/after fail
- test(afterAll): example should fail when context afterAll/after fail
- test(before): example should fail when before fails
- test(act): example should fail when context act fails
- test(pending): example should not fail when previous hook throws
- test(after): exception thrown in afterAll/after should not override those from previous hooks
- test(xUnitFormatter): don't fail for EOL differences among OSes
- test(act): example body should run when act throws
- test(after): preserve example exception when afterAll/after throws
- test(asyncBefore): example should not run and fail when before throws
- test(asyncAfter): example should run but fail when after throws
- test(act): correct test case names when exception is unexpected
- test(xUnitFormatter): don't fail for EOL differences among OSes
- test(failFast): streamline expectations
- test(formatters): delete temp folder after XUnitFormatter test
๐จ Refactorings
- refactor(context): reduce responsibilities taken by Context, ClassContext, ExampleBase (#193)
- refactor(formatters): set
alreadyWritten
flag in one place
- refactor(tools): extract specific commands in package build script
Chore
- chore(controller): rename ExampleSelector main method
- chore(test): change casing in
describe_Levels*
tests - chore(appveyor): rename NuGet artifact
- chore(tools): add settings for VS Code on MacOS
- chore(tools): exclude packages folder for VSCode
- chore(tools): exclude bin/obj folders from VS Code
Previous changes from v3.0.7
-
- ๐ fix(formatters): XUnitFormatter does not flush output to file
- ๐ fix(formatters): XUnitFormatter output XML must start with BOM
- ๐ fix(formatters): XUnitFormatter throws when no options are set
Internals:
- โฌ๏ธ chore(examples): upgrade to NSpec 3.0.6
- ๐ chore(appveyor): don't trigger CI build on example changes
- ๐ท chore(tools): rename script changing CI version number