Comments (5)
Thanks!
from mug.
Only reason JUnit 5 was included was to have assertThrows()
.
Inside Google, we use JU4 with backported assertThrows().
I guess we could migrate to JU5. My only concern would be the deviation from Google's internal tests, making it harder to move code one way or another.
from mug.
Only reason JUnit 5 was included was to have assertThrows().
Inside Google, we use JU4 with backported assertThrows().
Ah okay, I see. That makes sense to me.
I guess we could migrate to JU5. My only concern would be the deviation from Google's internal tests, making it harder to move code one way or another.
Okay, I think I understand your concerns here.
How about we change the pom.xml
s so that rather than importing junit-platform-runner
, they import junit:junit:4.x
instead?
That way, it's more explicit (in my mind at least) that we're still using JUnit 4 as the underlying "test engine", but that we're merely importing org.junit.jupiter:junit-jupiter-api:5.0.0-M3
to have access to assertThrows()
(in a similar way to how we currently use Truth to have access to more assertions).
from mug.
Sounds good! Care to send a PR? :)
from mug.
Happily! :)
Here's the PR, FYI.
from mug.
Related Issues (15)
- 2.3 availability HOT 9
- Problem with Java 8 compilation HOT 1
- Publish a new release with Java 8 support to maven central.
- The type of toImmutableListMultimap(Function<? super E,? extends Object>, Function<? super E,? extends Object>) from the type ImmutableListMultimap is Collector<E,?,ImmutableListMultimap<Object,Object>>, this is incompatible with the descriptor's return type: Collector<E,?,Object> HOT 2
- There is a vulnerability inGuava: Google Core Libraries for Java 29.0-jre,upgrade recommended HOT 4
- [Docs] Possible outdated documentation
- Why limit the chunk size? HOT 3
- Broken links HOT 1
- Provide OSGi Metadata HOT 2
- javadoc link not found HOT 2
- Type Mismatch Errors in Maybe.java Class of com.google.mu.util Package HOT 1
- BiStream equivalent to Stream.findFirst()? HOT 2
- RocksDB with BiStream HOT 2
- BiStream.sortedBy[Values,Keys] gives unexpected output HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mug.