Celem testów jednostkowych jest weryfikacja poprawności działania pojedynczych elementów programu. Dla zależno-ści wychodzących poza ten zakres powinny zostać utworzone atrapy obiektów. Proces ten wspomagają dedykowane biblioteki. W niniejszej pracy przedstawiono porównanie trzech szkieletów programistycznych do izolacji kodu w te-stach jednostkowych dla platformy programistycznej .NET: Moq 4.16.1, FakeItEasy 7.2.0 oraz NSubstitute 4.2.2. Ba-danie wydajności objęło porównanie czasów wykonania testów wydajnościowych oraz porównanie czasów wykonania testów jednostkowych, wktórych wykorzystane zostały wybrane metody badanych bibliotek. Wyniki przedstawiono na wykresach pudełkowych. Z przeprowadzonej analizy wynika, że optymalnym szkieletem programistycznym do tworze-nia atrap obiektów jest Moq.
EN
The goal of unit testing is to verify that individual parts of application are correct. For external dependencies mock objects should be created. This process is supported by dedicated libraries. The paper compares three unit test isolation frameworks for .NET: Moq 4.16.1, FakeItEasy 7.2.0 and NSubstitute 4.2.2. The performance research included compar-ison of benchmark execution times and comparison of unit test execution times in which selected methods of tested libraries were used. The results are shown on box plots. The analysis shows that Moq is optimal mocking framework
W artykule przedstawiono projekt oraz kluczowe aspekty realizacji biblioteki służącej do automatycznego testowania kompletności implementacji danego problemu w języku Java poprzez testy jednostkowe. Dzięki użyciu mechanizmów refleksji oraz programowania aspektowego prezentowane rozwiązanie umożliwia przeprowadzenie standardowych testów jednostkowych na z góry nieznanych, dostarczonych z zewnątrz klasach. Przedstawiona biblioteka jest rozwijana w ramach pracy inżynierskiej o tym samym tytule.
EN
In this article a project and key implementation aspects of library, used for automatic testing of the completeness of implementation of a given problem in Java through unit testing, are presented. Thanks to the use of reflection mechanism and aspect-oriented programming, the presented solution enables standard unit tests to be performed on a priori unknown, external classes. The presented library is developed as part of engineering diploma thesis work with the same title.
3
Dostęp do pełnego tekstu na zewnętrznej witrynie WWW
This paper presents a design and usage of the author’s innovative framework, called JupEEter. This framework helps running and testing Java Enterprise Edition (Java EE) applications [1] and to use Java EE components in Java SE [2] applications. The framework defines the application server and application life-cycle and exploits annotation based programming technique for its configuration.
4
Dostęp do pełnego tekstu na zewnętrznej witrynie WWW
Code refactoring is supported by many Integrated Development Environments. This paper is focused on the automated code refactoring of C# programs. We have analyzed more than sixty refactorings available in three popular IDEs. We cataloged different restrictions, defects, and other quality concerns associated with the implementation of the refactorings, taking into account both modification of the production code and of the corresponding test cases. An extension to automate selected refactoring improvements has been developed for the ReSharper platform and experimentally verified.
JavaScript jest wyłączony w Twojej przeglądarce internetowej. Włącz go, a następnie odśwież stronę, aby móc w pełni z niej korzystać.