-
Notifications
You must be signed in to change notification settings - Fork 1
Practice 11 ‐ Code Coverage
Oszkár Semeráth edited this page Dec 2, 2024
·
10 revisions
Code Coverage
-
Download the project
https://github.com/ftsrg-edu/ase-labs.git
. -
Switch to branch
practice-2b-end
. -
initiate Gradle build. Wait for indexing to finish.
-
Select a simple test ```logic/src/test/java/hu/bme/mit/ase/shingler/logic/TokenizerTests.java''' and select Right Click | Run TokenizerTest.
-
Observe the result of the unit tests.
- Now select **More Run/Debug | Run TokenizerTest with Coverage. You will notice, that a new window will be available called "Coverage". Here, we can observe different coverage metrics.
-
Check the code annotated with different coverages.
-
Add a new test to improve the Branch Coverage of the
Tokenizer
class . -
You can run all the tests by Right click on the subproject (e.g.,
diversity
orsimilarity
) | More Run/Debug | Run 'All Tests' with Coverage
- Lab 1 - TypeScript introduction
- Lab 2 - Langium LSP Introduction
- Lab 3 - Code Generation
- Lab 4 - Large Language Models
- Lab 5 - Testing
- Lab 6 - Smart Contracts on Ethereum
ASE Lectures (fall semester)
- Practice 2a ‐ Simple Gradle CI CD
- Practice 2b ‐ Advanced Gradle CI CD
- Practice 3 ‐ Graph Modeling
- Practice 4 ‐ Textual editors
- Practice 5 ‐ LLMs
- Practice 6 ‐ Code Generation
- Practice 8 ‐ Benchmarking
- Practice 9 ‐ Data analysis
- Practice 10 ‐ Static analysis
- Practice 11 ‐ Code Coverage
- Homework part 1 ‐ Graph Modeling
- Homework part 2 ‐ Textual Modeling
- Homework part 3 ‐ Code Generation
- Homework part 4 ‐ Data Analysis
- IMSc Extra Homework Assignment
Old exams are available here.