umontreal-diro / IFT3913

Syllabus pour IFT3913 [automne 2024]
MIT License
21 stars 100 forks source link

Test unitaire #2

Open bbaudry opened 3 months ago

bbaudry commented 3 months ago
    #[test]
    fn test_universe() {
        assert_eq!(mul(6, 9), 42);
    }

https://fr.wikipedia.org/wiki/Test_unitaire

bbaudry commented 3 months ago

Test unitaire en Java https://junit.org/junit5/

bbaudry commented 3 months ago

Test unitaire en Rust https://doc.rust-lang.org/rust-by-example/testing/unit_testing.html

bbaudry commented 3 months ago

Test unitaire en Python https://docs.pytest.org/en/8.2.x/

bbaudry commented 3 months ago

Test unitaire pour Node.js https://mochajs.org/

bbaudry commented 3 months ago

Software Unit Test Smells https://testsmells.org/

bbaudry commented 3 months ago

On the effectiveness of unit tests in test-driven development https://scholar.archive.org/work/aaqhrccwvveyzjlw32ptlatske/access/wayback/https://bura.brunel.ac.uk/bitstream/2438/16116/1/FullText.pdf

bbaudry commented 3 months ago

Pytest-Smell: a smell detection tool for Python unit tests https://dl.acm.org/doi/pdf/10.1145/3533767.3543290

bbaudry commented 3 months ago

Unit tests, by Martin Fowler https://martinfowler.com/bliki/UnitTest.html

bbaudry commented 3 months ago

Desirable Unit Tests https://tidyfirst.substack.com/p/desirable-unit-tests

bbaudry commented 3 months ago

Arrange, Act and Assert Pattern https://automationpanda.com/2020/07/07/arrange-act-assert-a-pattern-for-writing-good-tests/

bbaudry commented 3 months ago

Programmation pilotée par le comportement (en anglais behaviour-driven development ou BDD) https://fr.wikipedia.org/wiki/Programmation_pilot%C3%A9e_par_le_comportement http://philippe.poumaroux.free.fr/index.php?post/2012/02/06/Introduction-au-Behaviour-Driven-Developement

bbaudry commented 3 months ago

Outils pour BDD https://github.com/cucumber

bbaudry commented 3 months ago

Python's unittest: Writing Unit Tests for Your Code https://realpython.com/python-unittest/

bbaudry commented 3 months ago

Harmcrest pour spécifier des oracles de test https://github.com/hamcrest

bbaudry commented 3 months ago

Test oracle https://en.wikipedia.org/wiki/Test_oracle

bbaudry commented 3 months ago

The oracle problem in software testing: A survey

bbaudry commented 2 months ago

Why and how to write unit tests, by mozilla https://github.com/mozilla-mobile/firefox-ios/wiki/Why-and-how-to-write-unit-tests

bbaudry commented 1 month ago

Pest vs PHPUnit Syntax: My Favorite expect() Examples