This test tells how much air moves in and out of your lungs when you exercise. During the test, you may be asked to walk on a treadmill or ride on a stationary bike. Read on to learn what to expect before, during, and after the test.