JUnit 5 support
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 72
Description
> ATTENTION! Please read and follow:
> - if this is a _question_ about how to build / test / query / deploy using Bazel, ask it on StackOverflow instead: https://stackoverflow.com/questions/tagged/bazel
> - if this is a _discussion starter_, send it to bazel-discuss@googlegroups.com
> - if this is a _bug_ or _feature request_, fill the form below as best as you can.
### Description of the problem / feature request:
JUnit v5 (Jupiter) is a significant new version of JUnit, bringing many new features and changes.
Bazel should natively support JUnit v5 (Jupiter) tests. JUnit v5 annotations and assertions cannot be run in v4.
### Feature requests: what underlying problem are you trying to solve with this feature?
"bazel test" should run for JUnit5 tests
### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
> Replace this line with your answer.
### What operating system are you running Bazel on?
Windows.
### What's the output of `bazel info release`?
0.19.1
### Have you found anything relevant by searching the web?
https://github.com/JeffreyFalgout/bazel-junit5.git
It fails with all kind of errors.
### Any other information, logs, or outputs that you want to share?
Will upload sample on request.
Contributor guide
Research direction
Start with Bazel's existing Java test integration and the referenced bazel-junit5 repository. Use `bazel test` as the entry point and compare how JUnit 5 annotations and assertions are handled. Done means Bazel can run JUnit 5 tests natively, including Jupiter tests on the reported Windows setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100