项目作者: sufuf3

项目描述 :
NCTU Software Testing Class HW1 - google test with triangle, commission, nextdate problems
高级语言: C++
项目地址: git://github.com/sufuf3/ST2017-hw1-gtest.git
创建时间: 2017-03-17T17:45:32Z
项目社区:https://github.com/sufuf3/ST2017-hw1-gtest

开源协议:

下载


ST2017-hw1-gtest

Set the Google test on Ubuntu

  1. cd ~/
  2. wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
  3. tar zxvf release-1.8.0.tar.gz
  4. mkdir ~/ST2017-hw1-gtest
  5. cd ~/ST2017-hw1-gtest
  6. cp -r ~/googletest-release-1.8.0/googletest ~/ST2017-hw1-gtest/gtest
  7. cd ~/ST2017-hw1-gtest/gtest/make
  8. make
  9. mv gtest_main.a libgtest.a

Add hw floder

  1. mkdir ~/ST2017-hw1-gtest/[hw]
  2. cd ~/ST2017-hw1-gtest/[hw]
  3. Add files
  4. g++ triangle.cpp test.cpp -I ../gtest/include -L ../gtest/make -lgtest -lpthread -o test
  5. ./test

list

Triangle problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing

NextDate problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing

Commission problems

  • Boundary value testing
  • Equivalence class testing
  • decision table based testing