NSpec v3.1.0 Release Notes

Release Date: 2017-06-12 // over 3 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