Jasmine for C# and/or Java
I just came across NJasmine on GitHub. I've never used it but thought this might help others like myself that want the awesome of Jasamine in C# unit tests.
From the GitHub:
NJasmine is a RSpec-ish test language inspired by the javascript test library Jasmine (https://github.com/fschwiet/DreamNJasmine) for C# / .Net programming.
given("some preconditions", () => {
var range = 10;
when("the system under test is ran", () => {
var sut = new SystemUnderTest();
bool score = arrange(() => sut.Fire(range));
then("win!", () => {
expect(() => score);
});
});
});
Available on Nuget: http://nuget.org/List/Packages/NJasmine
Again, I can't vouch for this as I haven't used it, but I hope this will help others make informed decisions.
HTH
Oleaster is a Java testing framework with clean simple syntax, extensively using Java 8 arrow functions. It is executed using JUnit runner.
Code sample from hompage:
@RunWith(OleasterRunner.class)
public class OleasterIntroductionTest {{
describe("A suite", () -> {
it("contains a spec with an expectation", () -> {
expect(40 + 2).toEqual(42);
});
});
}}
JUnit 5 will be BDD-like, with @DisplayName, @Nested, and so on. You can have a look at the documentation.
The GA release is not here yet, but it should arrived soon (announced for late 2016).