Coder Social home page Coder Social logo

spring-week3-assignment-1's Introduction

테스트 작성하기

과제 목표

image

우리가 작성한 코드가 올바르게 동작하는지 자동으로 확인해 줄 수 있는 유닛 테스트를 작성해 주세요.
컨트롤러는 유닛 테스트뿐만 아니라 실제로 웹에서 동작하는 것처럼 작성하는 Spring Mock MVC 테스트를 작성해 주세요.

  • HelloController 유닛 테스트
  • HelloController MockMVC 테스트
  • Task 모델 테스트
  • TaskService 테스트
  • TaskController 유닛 테스트
  • TaskController MockMVC 테스트

요구 사항

  • 모든 인수 테스트를 통과해야 합니다.
  • 테스트 커버리지 100%를 달성해야 합니다.

API 실행하기

./gradlew run

Web 실행하기

cd web
npm install
npm run dev

테스트

Spring 테스트 실행

$ ./gradlew test

커버리지 확인하기

테스트를 실행하면 자동으로 커버리지 정보를 수집하여 저장합니다. 커버리지 정보는 app/build/reports 폴더에 저장됩니다. 커버리지 정보를 확인하려면 app/build/reports/jacoco/test/html/index.html파일을 브라우저에서 열면 확인할 수 있습니다.

설치하기

$ cd tests
$ npm install

E2E 테스트 실행하기

테스트는 실제로 동작하는 서버에 테스트하므로 서버가 동작하고 있는 상태여야 올바르게 동작합니다.
프론트엔드 개발용 서버도 동작하고 있는 상태여야 올바르게 동작합니다.

$ npm run e2e

spring-week3-assignment-1's People

Contributors

hannut91 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spring-week3-assignment-1's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.